<template>
  <hc-button ref="btnRef" type="primary" @click="open = true">
    Begin Tour
  </hc-button>

  <hc-tour v-model="open">
    <hc-tour-step
      title="Center"
      description="Displayed in the center of screen."
    />
    <hc-tour-step
      title="Right"
      description="On the right of target."
      placement="right"
      :target="btnRef?.$el"
    />
    <hc-tour-step
      title="Top"
      description="On the top of target."
      placement="top"
      :target="btnRef?.$el"
    />
  </hc-tour>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import type { ButtonInstance } from 'hicor-ui'

const btnRef = ref<ButtonInstance>()

const open = ref(false)
</script>
